﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/BaseMaster/Pages.Master" AutoEventWireup="true" CodeBehind="UserLoginLog.aspx.cs" Inherits="Liu_Project.Web.Admin.Pages.Personal.EntUser.UserLoginLog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="baseTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="baseHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="baseContent" runat="server">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <table id="tableGrid" lay-filter="tbGrid" class="table_margin_0"></table>
                </div>
            </div>
        </div>
    </div>

    <script type="text/html" id="txtLoginTime">
        <div>{{layui.util.toDateString(d.LoginTime)}}</div>
    </script>
    <script type="text/html" id="txtStatus">
        <input type="checkbox" name="IsSuccess" value="{{d.IsSuccess}}" lay-skin="switch" lay-text="成功|失败" disabled {{ d.IsSuccess ? 'checked' : '' }}>
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="baseScript" runat="server">
    <script>
        ; !function () {
            var tableOption = {
                elem: '#tableGrid',
                url: bootPATH + '/Admin/Handler/BaseHand/UserRoleHand.ashx',
                where: { act: "GetLoadPages" },
                height: 'full-40',//表格容器距离浏览器顶部和底部的距离“和”，加上面板上下内边距40px
                cols: [[
                    //{ type: 'checkbox', fixed: true },
                    { type: 'numbers', title: '序号', fixed: true },
                    { field: 'UserNo', title: '用户编号', minWidth: 80, sort: true, fixed: true },
                    { field: 'UserName', title: '用户名称', minWidth: 120, sort: true },
                    { field: 'ClientIP', title: 'IP地址', minWidth: 120, sort: true },
                    { field: 'IpAddress', title: 'IP位置', minWidth: 120, sort: true },
                    { field: 'IsSuccess', title: '状态', minWidth: 60, sort: true, templet: '#txtStatus' },
                    { field: 'LoginTime', title: '登录时间', minWidth: 160, sort: true, templet: '#txtLoginTime' }
                ]],
            };

            table_render(tableOption);//加载表格数据

        }();
    </script>
</asp:Content>
